package com.ydc.ln.tutorial.book.tij;

import java.util.Date;
import java.util.Properties;

/**
 * 打印当前系统信息
 * 
 * @author ydc
 * @date 下午11:10:43 2013-6-20
 */
public class Test01 {
    public static void main(String[] args) {
        System.out.println(new Date());
        Properties p = new Properties();
        p.list(System.out);
        Runtime rt = Runtime.getRuntime();
        System.out.println("totalMenory: " + rt.totalMemory() + "\nfreeMemory: " + rt.freeMemory());
    }
}
